package com.zzzy.framework.common.enums.sys;

import com.zzzy.framework.common.annotation.ClassDescription;
import com.zzzy.framework.common.enums.DictInterface;
import lombok.Getter;

/**
 * Description: 数据权限范围枚举类
 *
 * @author fc
 * @date 2024/4/17
 */
@Getter
@ClassDescription("数据权限范围")
public enum DataScopeEnum implements DictInterface {

    ALL(1, "全部数据权限"),
    DEPT_CUSTOM(2, "指定部门数据权限"),
    DEPT_ONLY(3, "本部门数据权限"),
    DEPT_AND_CHILD(4, "本部门及子部门数据权限"),
    SELF(5, "仅本人数据权限");

    /**
     * 范围
     */
    private final Integer value;
    private final String description;

    DataScopeEnum(Integer value, String description) {
        this.value = value;
        this.description = description;
    }
}
